package com.sphd.emanu.activity.materialsstorelist;

import android.content.Context;
import android.support.v7.app.AlertDialog;

import com.sphd.emanu.mvp.BasePresenter;
import com.sphd.emanu.mvp.BaseView;
import com.sphd.emanu.pojo.goods.Category;

import cn.pedant.SweetAlert.SweetAlertDialog;

/**
 * MVPPlugin
 *  邮箱 784787081@qq.com
 */

public class MaterialsStoreListContract {
    interface View extends BaseView {
        void setCate(Category category);

        void setRes(int i, int res, SweetAlertDialog sweetAlertDialog);

        void setAddRes(int res, AlertDialog viewDialog);

        void setDelRes(int res, int pos, SweetAlertDialog sweetAlertDialog);
    }

    interface  Presenter extends BasePresenter<View> {
        void selectNextCategory(int id);
        void deleteMaterial(Integer id, int pos, SweetAlertDialog sweetAlertDialog);
        void addMaterialCategory(Integer level, String name, Integer org,Integer parent, AlertDialog viewDialog);

        void deleteMaterialCategory(Integer categoryId, int pos, SweetAlertDialog sweetAlertDialog);
        void updateMaterialCategory(int id, Integer level, String name, Integer oid, Integer paId, Integer pos, AlertDialog viewDialog);
    }
}
